package com.game.ThauanLopes;

import java.util.HashSet;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;

public class Background extends GameObject
{
	private Bitmap mainBitmap;
	private Rect mainRect;
	private Rect finalRect;
	
	public Background(Bitmap bitmap,Rect destRect,HashSet<GameObject> go)
	{
		mainRect = new Rect(0,0,bitmap.getWidth(),bitmap.getHeight());
		mainBitmap = bitmap;
		finalRect = destRect;
		go.add(this);
	}
	
	@Override 
	public void Update() 
	{
		
	}

	@Override
	public void Draw(Canvas canvas) 
	{
		canvas.drawBitmap(mainBitmap, mainRect,finalRect, new Paint());
	}

	@Override
	public boolean collision(Rect fingersPos) 
	{
		return false;
	}
}
